home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4018 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  676 b 

  1. Path: river.tay.ac.uk!insc2mb
  2. From: insc2mb@river.tay.ac.uk (Mr persil)
  3. Newsgroups: comp.lang.c
  4. Subject: c not writing to file 
  5. Message-ID: <1996Feb1.115146.24139@river.tay.ac.uk>
  6. Date: 1 Feb 96 11:51:46 GMT
  7. Organization: University of Abertay Dundee
  8.  
  9.  
  10.  
  11.  
  12. this is a sample of my lines of code 
  13.  
  14.  
  15. this should add the variable word to the end of file, but doesn't
  16.  
  17. i used a text editor to create the file
  18.  
  19.  
  20.     text1 = fopen(filename,"a");
  21.     fprintf (text1,word)
  22.     fclose (text1)
  23.  
  24. writes something to the hard disk, but nothing appends to the end of
  25. the file
  26.  
  27.  
  28. if i create the file using a c program it appends the word to the
  29. end
  30.  
  31.  
  32. any ideas would be great
  33.  
  34.  
  35. cheers
  36.  
  37.  
  38. the mega me
  39.  
  40.  
  41.  
  42.